package bean;

import protoClass.AppProtocolbuf;

public class SSTAppGCallRes {
	private String userid;
	private String dstgroupid;
	private String callid;
	private int res;
	public String getDstgroupid() {
		return dstgroupid;
	}
	public void setDstgroupid(String dstgroupid) {
		this.dstgroupid = dstgroupid;
	}

	public String getUserid() {
		return userid;
	}
	public void setUserid(String userid) {
		this.userid = userid;
	}
	public String getCallid() {
		return callid;
	}
	public void setCallid(String callid) {
		this.callid = callid;
	}
	public int getRes() {
		return res;
	}
	public void setRes(int res) {
		this.res = res;
	}
	
	public byte[] getBytes(){
		AppProtocolbuf.STAppGCallRes.Builder builder = AppProtocolbuf.STAppGCallRes.newBuilder();
		builder.setCallId(getCallid());
		builder.setRes(getRes());
		builder.setUserId(getUserid());
		builder.setDstGroupId(getDstgroupid());
		return builder.build().toByteArray();
	}	
	
}
